/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package main;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import parsing.Parsing;
import patterns.IPattern;
import patterns.Pattern;

/**
 *
 * @author Версанов Кирилл
 */
public class Main {

    private static final Logger log = Logger.getLogger(Main.class);

    public static void main(String[] args) {
        PropertyConfigurator.configure("logger/logger.properties");
        IPattern hotline = new Pattern("hotLineUA");
        IPattern invidia = new Pattern("invidiaRU");
        IPattern dx = new Pattern("DX");
        Parsing p1 = new Parsing();
        p1.parseHotLineUa("http://hotline.ua/musical_instruments-elektrogitary/fender-squier-bullet-hss/", hotline);
        p1.parseInvidiaRu("http://www.nvidia.ru/object/geforce-gtx-760-ru.html#pdpContent=2", invidia);
        p1.parseDx("http://dx.com/p/7-capacitive-touch-screen-android-2-3-tablet-pc-w-wi-fi-hdmi-tf-4gb-vc882-arm-cortex-a8-1ghz-104916", dx);

    }
}
